package finbudget.client.ui.table.fields;

import finbudget.client.ui.table.Field;
import finbudget.client.ui.table.Transformator;

public class BigDecimalField extends Field {
	private static final long serialVersionUID = 2551439931802798749L;

	/** serialization requirements */
	protected BigDecimalField() {
		super();
	}

	public BigDecimalField(String id, String name, int row, int col) {
		type = Type.BIGDECIMAL;
		this.id = id;
		captionForm = name;
		captionGrid = name;
		this.row = row;
		column = col;
	}

	@Override
	public Object toRaw(Transformator transformator, Object value) {
		return transformator.toRaw(this, value);
	}

	@Override
	public String fromRaw(Transformator transformator, Object value) {
		return transformator.fromRaw(this, value);
	}

}
